<?php
  //Genesis Software Manual - Page 20

  $pdf->AddPage();
  //$pdf->Image('./Genesis/Gen-soft/Gsm-13.png',0,0,210 ,297);
  //add_raster(1);
  
  $pdf->SetDrawColor(0,0,0);
  $pdf->SetTextColor(0,0,0);
  $pdf->SetFont('arial','',10);
  $pdf->SetLineWidth(0.4);

  set_text_space(4.4);
 
  $margin = array
  (
    'tab_1' => 30,
    'tab_2' => 36,
    'tab_3' => 44,
    'tab_4' => 54,
    'tab_5' => 74
    
  );
  
//======================================================================================================================
  new_line(30);
    $pdf->Bookmark('F. VDP Register',1,current_line() - 10);
    $pdf->Text($margin['tab_1'],current_line(),'F.');
    $pdf->Text($margin['tab_2'],current_line(),'VDP REGISTER');

  new_line();
  new_line();
    $pdf->Text($margin['tab_2'],current_line(),'VDP has write only register No. 0~No. 23 and read only status register totalling 25 registers.');
    $pdf->Text($margin['tab_2'],new_line(),'There are two modes for register setting: one is mode 4, the other mode 5. We tell you about');
    $pdf->Text($margin['tab_2'],new_line(),'mode 5 in this section and about mode 4 in MARK III section.');
  new_line();
    $pdf->Text($margin['tab_2'],new_line(),'If you change mode in one frame you can get various effects.');
  new_line();

//======================================================================================================================
    $pdf->Bookmark('1. Mode Set RegisterNo. 1',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],new_line(),'1.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'MODE SET REGISTER NO.1');
  new_line();
  new_line();
  
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #0');
    gentab_BitField_8($margin['tab_4'],current_line(),13,7,
      array('0','0','0','IE1','0','1','M3','0'));

  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'IE1.. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Enable H interrupt (68000 LEVEl 4)');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Disable H interrupt (REG #10)');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'M3.. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'H, V counter stop');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'enable read, H, V counter');
  new_line();
  new_line();

//======================================================================================================================
    $pdf->Bookmark('2. Mode Set RegisterNo. 2',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'2.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'MODE SET REGISTER NO. 2');
  new_line();
  new_line();
  
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #1');
    gentab_BitField_8($margin['tab_4'],current_line(),13,7,
      array('0','DISP','IE0','M1','M2','1','0','0'));

  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'DISP .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Enable Display');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Disble Display');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'IE0.. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Enable V interrupt ( 68000 LEVEL 6)');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'Disble V interrupt');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'M1 .. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'DMA Enable');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'DMA Disable');
  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'M2 .. .. ..');
    $pdf->Text($margin['tab_5'],current_line(),'1:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'V 30 cell mode (PAL mode)');
  new_line();
    $pdf->Text($margin['tab_5'],current_line(),'0:');
    $pdf->Text($margin['tab_5'] + 4,current_line(),'V 28 cell mode (PAL mode; always 0 in NTSC mode)');
  new_line();

//======================================================================================================================
  $pdf->Bookmark('3. Patern Name Table Base Address for Scroll A',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],new_line(),'3.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'PATERN NAME TABLE BASE ADDRESS FOR SCROLL A');
  new_line();
  new_line();
  
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #2');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','SA15','SA14','SA13','0','0','0'));

  new_line();
    $pdf->Text($margin['tab_4'],current_line(),'VRAM ADDR %XXX0_0000_0000_0000');
  new_line();
  new_line();

//======================================================================================================================
  $pdf->Bookmark('4. Patern Name Table Base Address for Window',2,current_line() - 10);
    $pdf->Text($margin['tab_2'],current_line(),'4.');
    $pdf->Text($margin['tab_2'] + 6,current_line(),'PATERN NAME TABLE BASE ADDRESS FOR WINDOW');

  new_line();
  new_line();
  new_line();
    $pdf->Text($margin['tab_2'] +2,current_line() + 5,'REG. #2');
    gentab_BitField_8($margin['tab_4'],current_line(),14,7,
      array('0','0','WD15','WD14','WD13','WD12','WD11','0'));

    $pdf->Text($margin['tab_4'],new_line(),'WD11 should be 0 in H40 cell mode');
    $pdf->Text($margin['tab_4'],new_line(),'VRAM ADDR %XXXX_X000_0000_0000 (H32 cell mode)');
    $pdf->Text($margin['tab_4'],new_line(),'VRAM ADDR %XXXX_0000_0000_0000 (H40 cell mode)');

    add_footer($pdf,'02/19/92','13');
?>
